const mongoose = require('mongoose');

var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({

    type: String,
    title: String,
    date: Date,
    author: String,
    content: String

});
schema.plugin(mongoosePaginate);
var News = mongoose.model('News', schema);
module.exports = News;